package decorator.example;

/**
 * 相当于Decorator类
 * @Author: Chen Guang
 * @Date: 2019/3/29 0029 上午 11:40
 */
public class Finery extends Person{
    private Person person;

    public Finery(Person person) {
        this.person = person;
    }


    @Override
    public void show() {
        if(person != null){
            person.show();
        }
    }
}
